import * as echarts from "echarts";
export default {
    grid: {
        top: "20%",
        bottom: -20,
        right: -6,
        left: 12,
        containLabel: true,
    },
    xAxis: {
        show: false,
    },
    yAxis: [
        {
            triggerEvent: false,
            show: true,
            inverse: true,
            axisLine: {
                show: false,
            },
            splitLine: {
                show: false,
            },
            axisTick: {
                show: false,
            },
            axisLabel: {
                show: false,
                interval: 0,
                color: "#fff",
                align: "left",
                margin: 80,
                fontSize: 13,
                formatter:()=>{},
                rich: {
                    title: {
                        width: 165,
                    },
                },
            },
            data: [],
        },
        {
            triggerEvent: false,
            show: true,
            inverse: true,
            axisLine: {
                show: false,
            },
            splitLine: {
                show: false,
            },
            axisTick: {
                show: false,
            },
            axisLabel: {
                interval: 0,
                shadowOffsetX: "-20px",
                color: ["#fff"],
                align: "right",
                verticalAlign: "bottom",
                lineHeight: -40,
                fontSize: 14,
                margin: 30,
                formatter:()=>{},
                rich: {
                    percentNumber: {
                        color: "#FFF",
                    },
                },
            },
            data: [],
        },
    ],
    series: [
        {
            name: "条形末端圆点",
            type: "pictorialBar",
            symbol:
                "image://",
            symbolSize: [20, 20],
            symbolOffset: [10, 0],
            z: 12,
            itemStyle: {
                color: "#fff",
            },
            data: [],
        },
        {
            name: "背景",
            type: "bar",
            barWidth: 4,
            barGap: "-100%",
            z: 1,
            itemStyle: {
                color: "#0b2645",
                borderRadius: 10,
            },
            data: [],
        },
        {
            name: "条",
            type: "bar",
            showBackground: true,
            borderRadius: 30,
            yAxisIndex: 0,
            barWidth: 4,
            itemStyle: {
                color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [
                    {
                        offset: 0,
                        color: "rgb(0,251,253,0)",
                    },
                    {
                        offset: 1,
                        color: "rgb(122, 218, 237 )",
                    },
                ]),
                borderRadius: 10,
            },
            data: [],
            label: {
                color: "#fff",
                show: true,
                position: [0, "-20px"],
                textStyle: {
                    fontSize: 14,
                },
                formatter: function (a, b) {
                    return a.name;
                },
            },
        },
    ],
}